package com.swt.gap.service;

import com.swt.gap.model.entity.SysDepartment;
import com.swt.gap.model.vo.SysDepartmentTreeVO;

import java.util.List;

/**
 * @author sx
 */
public interface SysDepartmentService {

    Integer addDepartment(SysDepartment department);

    SysDepartment getDepartment(Integer departmentId);

    List<SysDepartmentTreeVO> listDepartment();

    Integer updateDepartment(SysDepartment department);

    Integer deleteDepartment(Integer departmentId);

    List<SysDepartment> listChildrenDepartments(Integer departmentId);
}
